package tsli.acm.ctrl;

import tsli.acm.dao.TempAlBonusDetailDAO;
import tsli.acm.dao.TempCountAgentDAO;
import tsli.acm.database.Database;

public class AlicationClient {

	public static void main(String[] args) {
		
		Database db = new Database();
		
		 ALComponentAPIMethod componentAPIMethod  = new ALComponentAPIMethod();
		 componentAPIMethod.calculateAL("201404");
		
		
		// TempCountAgentDAO temp  = new TempCountAgentDAO(db);
		// temp.insertAgentByCondition("201403");
		
		
		//TempCountAgentDAO tempCountAgentDAO  = new TempCountAgentDAO(db);
//		tempCountAgentDAO.insertDetailAgent("201403");
		
//		String a = "201403";
//		System.out.println(a.substring(0,4));
//		System.out.println(a.substring(4,6));
//		String yyyymm = "201401";
//		java.util.Date today = new java.util.Date();
//		java.sql.Timestamp timestamp = new java.sql.Timestamp(today.getTime());
//		timestamp.setYear(Integer.parseInt(yyyymm.substring(0,4)));
//		timestamp.setMonth(Integer.parseInt(yyyymm.substring(4,6)));
//		System.out.println(yyyymm.substring(0,4));
//		System.out.println(yyyymm.substring(4,6));
//		System.out.println(timestamp);
		
//		TempAlBonusDetailDAO a = new TempAlBonusDetailDAO(db);
//		double b = a.getRemainingMOV("221201224", "201403");
//		System.out.println(b);
		
		System.out.println("Done!");
		
		
	}

}
